//
//  NSArray+KKShorthandAdditions.h
//  KKonry
//
//  Created by Jonas Budelmann on 22/07/13.
//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.
//

#import "NSArray+KKAdditions.h"

#ifdef KK_SHORTHAND

/**
 *	Shorthand array additions without the 'KK_' prefixes,
 *  only enabled if KK_SHORTHAND is defined
 */
@interface NSArray (KKShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(KKConstraintMaker *make))block;
- (NSArray *)updateConstraints:(void(^)(KKConstraintMaker *make))block;
- (NSArray *)remakeConstraints:(void(^)(KKConstraintMaker *make))block;

@end

@implementation NSArray (KKShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(KKConstraintMaker *))block {
    return [self KK_makeConstraints:block];
}

- (NSArray *)updateConstraints:(void(^)(KKConstraintMaker *))block {
    return [self KK_updateConstraints:block];
}

- (NSArray *)remakeConstraints:(void(^)(KKConstraintMaker *))block {
    return [self KK_remakeConstraints:block];
}

@end

#endif
